package com.ying.user.dao;

import com.ying.user.entity.MmUser;
import com.ying.user.entity.MmUserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Optional;

public interface MmUserDao {
    /**
     *
     * @mbg.generated 2020-07-13
     */
    long countByQuery(MmUserQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int deleteByQuery(MmUserQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int insert(MmUser record);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int insertSelective(MmUser record);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    List<MmUser> selectByQuery(MmUserQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    MmUser selectByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByQuerySelective(@Param("record") MmUser record, @Param("example") MmUserQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByQuery(@Param("record") MmUser record, @Param("example") MmUserQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByPrimaryKeySelective(MmUser record);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByPrimaryKey(MmUser record);

    Optional<MmUser> findByTelephone(@Param("telephone") String telephone);
}